/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：IGraphics.java <br>
 * 创建时间：2013-5-19 下午7:13:19 <br>
 * 所属项目：GmudEX <br>
 * @author 12548 <br>
 */
package lostland.gmud.exv2.blgframework;

/**
 * 类名：IGraphics <br>
 * 说明：图像绘制
 *
 * @author 12548
 */
public interface IGraphics {
	public static enum PixmapFormat {
		ARGB8888, ARGB4444, RGB565
	}

	public IPixmap newPixmap(String fileName, PixmapFormat format);

	public void clear(int color);

	public void drawPixel(int x, int y, int color);

	public void drawLine(int x, int y, int x2, int y2, int color);

	public void drawRect(int x, int y, int width, int height, int color);

	public void drawPixmap(IPixmap pixmap, int x, int y, int srcX, int srcY, int srcWidth, int srcHeight);

	public void drawPixmap(IPixmap pixmap, int x, int y);

	public int getWidth();

	public int getHeight();

}
